Visual Basic (Declaration) | |
---|---|
Public Overloads Function ShowDialogAsync(Of T)( _ ByVal commands As IEnumerable(Of IDialogUICommand(Of T)), _ ByVal content As Object, _ Optional ByVal title As String _ ) As Task(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DialogManager Dim commands As IEnumerable(Of IDialogUICommand(Of T)) Dim content As Object Dim title As String Dim value As Task(Of T) value = instance.ShowDialogAsync(Of T)(commands, content, title) |
C# | |
---|---|
public Task<T> ShowDialogAsync<T>( IEnumerable<IDialogUICommand<T>> commands, object content, string title ) |
C++/CLI | |
---|---|
public: Task<T^>^ ShowDialogAsyncgeneric<typename T> ( IEnumerable<IDialogUICommand<T^>^>^ commands, Object^ content, String^ title ) |
Parameters
- commands
- A list of commands that can be invoked as part of the dialog.
- content
- The custom view model to host in the dialog.
- title
- Optional title of the dialog.
Type Parameters
- T
- User-defined dialog result type.
Return Value
The dialog result.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family